import User from '@/pages/user/User'
import UserEdit from '@/pages/user/UserEdit'
import StudyRecord from '@/pages/study_record/StudyRecord'
import Feedback from '@/pages/feedback/Feedback'
import MyCollection from '@/pages/my_collection/MyCollection'
import SignIn from '@/pages/my_task/SignIn'
import RankList from '@/pages/my_task/RankList'
import OnTrial from '@/pages/onTrial/OnTrial'
import FillInReport from '@/pages/onTrial/FillInReport'

export default [
  // 我的
  {
    path: '/user',
    name: 'User',
    component: User,
    meta: {
      title: '我的',
      requireAuth: true// 表示进入该页面是否需要登录
    }
  },
  // 编辑个人信息
  {
    path: '/user-edit',
    name: 'UserEdit',
    component: UserEdit,
    meta: {
      title: '编辑个人信息'
    }
  },
  // 个人学习记录
  {
    path: '/study-record',
    name: 'StudyRecord',
    component: StudyRecord,
    meta: {
      title: '学习记录'
    }
  },
  // 留言反馈
  {
    path: '/feedback',
    name: 'Feedback',
    component: Feedback,
    meta: {
      title: '留言与反馈'
    }
  },
  // 我的收藏
  {
    path: '/my-collection',
    name: 'MyCollection',
    component: MyCollection,
    meta: {
      title: '我的收藏'
    }
  },
  // 我的任务
  {
    path: '/sign-in',
    name: 'SignIn',
    component: SignIn,
    meta: {
      title: '我的任务'
    }
  },
  // 排行榜
  {
    path: '/rank-list',
    name: 'RankList',
    component: RankList,
    meta: {
      title: '排行榜'
    }
  },
  // 我的试用
  {
    path: '/on-trial',
    name: 'OnTrial',
    component: OnTrial,
    meta: {
      title: '我的试用'
    }
  },
  // 填写报告
  {
    path: '/fill-in-report',
    name: 'FillInReport',
    component: FillInReport,
    meta: {
      title: '评测报告'
    }
  }
]
